package nxu.it.movieapi.enums;

public enum ResponseType {
    SUCCESS(200, "请求成功"),
    FAILURE(401, "请求失败");

    private final int code;
    private final String message;

    ResponseType(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
